home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000327_arthur.marsh@adelaide.edu.au_Thu Aug 29 12:06:51 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
67 lines
Article: 13657 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!jfk3-feed1.news.algx.net!allegiance!news.maxwell.syr.edu!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail
From: Arthur Marsh <arthur.marsh@adelaide.edu.au>
Organization: The University of Adelaide
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: scripting capturing of Cisco ARP tables
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: dialup46.staffdialup.services.adelaide.edu.au
Message-ID: <3d6e39ea@yorrell.saard.net>
X-Original-Trace: 30 Aug 2002 00:42:42 +0950, dialup46.staffdialup.services.adelaide.edu.au
Lines: 45
Date: Thu, 29 Aug 2002 15:12:46 GMT
NNTP-Posting-Host: 203.21.37.20
X-Trace: news.optus.net.au 1030633966 203.21.37.20 (Fri, 30 Aug 2002 01:12:46 EST)
NNTP-Posting-Date: Fri, 30 Aug 2002 01:12:46 EST
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13657
Hi, I've been out of practice with writing Kermit scripts and want to do
the following:
Given one series of IP addresses:
telnet to each IP address in turn,
send a:
show arp
command
and send a space character as long as a "More" prompt appears
For each line that starts with "Internet", log the 4th and 2nd space
delimited string to a file.
There are a couple of variations.
One device needs to be sent the comand
session 15 <cr>
after the initial log-in and before the "show arp" command.
Some devices need
session 15 <cr>
followed by a second username/password (identical to the first)
after the initial log-in and before the "show arp" command.
Are there any particular sample scripts to follow, and hints for
scripting checking for a "More" prompt?
Although this seems trivial, it's a bit different from the state table I
did in 1989 for electronic tax lodgements using MS-Kermit.
Regards,
Arthur.